<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class LogTaskSettings extends Model
{
        /**
     * 与模型关联的表名
     */
    protected $table = 'log_task_settings';

    protected $fillable = [
       'user_id',
       'image_count',
       'default_images',
       'random_log',
       'log_type',
    ];

        /**
     * 自动转换的属性
     */
    protected $casts = [
        'user_id' => 'integer',
        'image_count' => 'integer',
        'default_images' => 'boolean',
        'random_log' => 'boolean',
        'log_type' => 'string',
        'created_at' => 'datetime:Y-m-d H:i:s',
        'updated_at' => 'datetime:Y-m-d H:i:s',
    ];

} 
